package ru.pb.game.network.engine.client.packets.receivable;

import ru.pb.game.network.engine.client.packets.FromClientToGameServerPacket;
import ru.pb.game.network.engine.client.packets.sendable.opcode_2050_ACK;
import ru.pb.game.objects.model.players.Player;

public class opcode_2563_REQ extends FromClientToGameServerPacket
{

	@Override
	public void readImpl()
	{
		readH();
	}

	@Override
	public void runImpl()
	{
		Player p = getPlayer();
		if(p != null)
		{
			// _log.info("Logout player: " + p.getName());
			p.logout(false, false, false);
		}
		sendPacket(new opcode_2050_ACK());
	}
}
